#include "user_bt_voice_recognition.h"
#include "user_bt.h"
#include "app_bt.h"

#define    BT_VOICE_LOG printf

bool    voice_active = 0;

void    user_bt_voice_start_active(bool type)
{
    BtStatus status;

    if(type)
    {
        //memcpy(event->param, (void *)"CJ01", sizeof("CJ01"));
        status = bt_enable_voice_recognition(user_bt_env.last_active_index, true);

    }else {
        //memcpy(event->param, (void *)"CJ00", sizeof("CJ01"));
        status = bt_enable_voice_recognition(user_bt_env.last_active_index, false);
    }
		
    BT_VOICE_LOG("status = %d\r\n",status);  
}



bool user_bt_get_voice_active(void)
{
    return voice_active;
}

void user_bt_set_voice_active(bool active)
{
     voice_active = active;
}